//package com.revzone.demo001.controller;
//
//import com.revzone.demo001.entity.Logger;
//import com.revzone.demo001.entity.Result;
//import com.revzone.demo001.mapper.LoggerMapper;
//import com.revzone.demo001.service.LoggerService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * <p>
// *  前端控制器
// * </p>
// *
// * @author lsa
// * @since 2025-06-13
// */
//@RestController
//@RequestMapping("/logger")
//public class LoggerController {
//
//    @Autowired
//    LoggerService loggerService;
//
//    @Autowired
//    LoggerMapper loggerMapper;
//
//    @PostMapping(value="/list", produces = "application/json;charset=UTF-8")
//    public Result listResources(@RequestBody(required = false) Logger logger ) {
//        return Result.success(loggerService.list());
//    }
//
//    @PostMapping(value="/listUser", produces = "application/json;charset=UTF-8")
//    public Result listUser(@RequestBody(required = false) Logger logger ) {
//        return Result.success(loggerMapper.getReUser("Admin"));
//    }
//
//
//    @PostMapping(value="/add", produces = "application/json;charset=UTF-8")
//    public Result addResource(@RequestBody(required = false) Logger logger) {
//        return Result.success(loggerService.save(logger));
//    }
//
//    @PostMapping(value="/update", produces = "application/json;charset=UTF-8")
//    public Result updateResource(@RequestBody(required = false) Logger logger) {
//        return Result.success(loggerService.updateById(logger));
//    }
//
//    @GetMapping(value="/delete", produces = "application/json;charset=UTF-8")
//    public Result deleteResource(@RequestParam(required = false) Long id) {
//        return Result.success(loggerService.removeById(id));
//    }
//
//}
